javascript check if blank space

52

javascript check if blank space -

function isEmptyOrSpaces(str){
    return str === null || str.match(/^ *$/) !== null;
}

Comments

Submit
0 Comments